<div class="row" style="background-color: #ecf0f5">
  <div class="col-sm-12">
    <ul class="timeline">
      <% @versions.each do |app_version| %>
      <li class="time-label">
        <span class="bg-red"><%= app_version.released_date.strftime("%y-%m-%d") %></span>
      </li>
      <li>
      <div class="timeline-item" style="box-shadow: none">
        <span class="time">
          <%= icon('far', 'clock') %>
          <%= date_diff(app_version.released_date) %> ago
        </span>
        <h3 class="timeline-header">
          <a href="#"><%= app_version.version %></a>
        </h3>
        <div class="timeline-body">
          <div class="row text-center m-t-5">
            <div class="col-xs-2 col-border">
              <h5><%= app_version.version %></h5>
              <h6>版本</h6>
            </div>
            <div class="col-xs-2 col-border">
              <h5><%= app_version.success.to_s rescue '-' %></h5>
              <h6>启动成功次数</h6>
            </div>
            <div class="col-xs-2 col-border">
              <h5><%= app_version.fails.to_s rescue '-' %></h5>
              <h6>启动失败次数</h6>
            </div>
            <div class="col-xs-2 col-border">
              <h5><%= (((app_version.fails.to_f/(app_version.fails + app_version.success)).round(2))*100).to_i.to_s + "%" rescue '-' %></h5>
              <h6>崩溃率</h6>
            </div>
            <div class="col-xs-2 col-border">
              <h5><%= app_version.released_date.strftime("%y-%m-%d") %></h5>
              <h6>发布日期</h6>
            </div>
            <div class="col-xs-2 col-border">
              <h5><%= app_version.description %></h5>
              <h6>迭代版本特点</h6>
            </div>
          </div>
        </div>
      </div>
      </li>
      <% end %>
    </ul>
  </div>
</div>